package cn.wolfcode.wolf2w.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Transient;
import org.springframework.data.mongodb.core.mapping.Document;

import java.util.List;

@Setter
@Getter
@Document("personal")
public class Personal extends BaseDomain{
    //关联用户ID
    private String userId;
    //记录总访问数
    private int totalVisitNum;
    //记录当日访问数
    @Transient
    private int todayVisitNum;
    //记录访客id数组
    private List<UserInfo> visitUserIds;
}
